#include "Student.h"

Student::Student()
{
}

Student::Student(int id, const string& name, const string& pwd, double score)
	:m_id(id), 
	m_name(name),
	m_pwd(pwd),
	m_score(score)
{

}

ostream& operator << (ostream& out, const Student& rhs)
{
	out << rhs.m_id << "\t" << rhs.m_name  << "\t" <<rhs.m_pwd
			<< "\t" << rhs.m_score << endl;
	return out;
}

ifstream& operator >> (ifstream& in, Student& rhs)
{
	in >> rhs.m_id >> rhs.m_name >> rhs.m_pwd >> rhs.m_score;
	return in;
}
ofstream& operator << (ofstream& out, const Student& rhs)
{
	out << rhs.m_id << "\t" << rhs.m_name << "\t" << rhs.m_pwd 
				<< "\t"  << rhs.m_score << endl;
	return out;
}







